// pages/index/index.js
Page({
  goSearch() {
    // 编程式导航
    // 相当于push
    const person = { name: 'jack', age: 18 }
    wx.navigateTo({
      url: `../search/search?id=111&keyword=aaa&person=${JSON.stringify(person)}`,
    })
  }
})